package chai.ning.data0905;

public class Text11 {

	public static void main(String[] args) {
		
		String s1 = "a" + "b";
		
		String s2 = new String(s1);
		
		if( s1 == s2 ) {
			System.out.println( " == is succeeded ");
		}
		
		if( s1.equals(s2) ) {
			System.out.println( " .equals() is succeeded ");
		}
	}
}
